package com.mes.schedule.domain;

import java.io.Serializable;
import java.util.Date;

public class WorkCenterStatistics  implements Serializable {

	protected String scheduleUid;
	protected String workCenterUid;
	protected SWorkCenter sWorkCenter;

	protected double capacity;
//	protected double load;
	protected double setupTime;
	protected double overTime;
	protected double loadRation ;
	protected double runTime;	
	protected double utilRation;
	//在此交货期之前
	protected Date beforeDate;
	//松弛率上界
	protected double slackFactorUbound;
	

	public WorkCenterStatistics(SWorkCenter workCenter) {
		super();
		sWorkCenter = workCenter;
		this.workCenterUid=workCenter.getWorkCenterUid();
		//未找到方法注释掉了lcs
		//this.scheduleUid=workCenter.getScheme().getScheduleUid();
	}
	public Date getBeforeDate() {
		return beforeDate;
	}
	public void setBeforeDate(Date beforeDate) {
		this.beforeDate = beforeDate;
	}
	public double getSlackFactorUbound() {
		return slackFactorUbound;
	}
	public void setSlackFactorUbound(double slackFactorUbound) {
		this.slackFactorUbound = slackFactorUbound;
	}
	public String getScheduleUid() {
		return scheduleUid;
	}
	public void setScheduleUid(String scheduleUid) {
		this.scheduleUid = scheduleUid;
	}
	public String getWorkCenterUid() {
		return workCenterUid;
	}
	public void setWorkCenterUid(String workCenterUid) {
		this.workCenterUid = workCenterUid;
	}
	public SWorkCenter getSWorkCenter() {
		return sWorkCenter;
	}
	public void setSWorkCenter(SWorkCenter workCenter) {
		sWorkCenter = workCenter;
	}
	public double getCapacity() {
		return capacity;
	}
	public void setCapacity(double capacity) {
		this.capacity = capacity;
	}
	public double getLoad() {
		return this.setupTime+this.runTime;
	}
//	public void setLoad(double load) {
//		this.load = load;
//	}
	public double getSetupTime() {
		return setupTime;
	}
	public void setSetupTime(double setupTime) {
		this.setupTime = setupTime;
	}
	public double getOverTime() {
		return overTime;
	}
	public void setOverTime(double overTime) {
		this.overTime = overTime;
	}
	public double getLoadRation() {
		return loadRation;
	}
	public void setLoadRation(double loadRation) {
		this.loadRation = loadRation;
	}
	public double getRunTime() {
		return runTime;
	}
	public void setRunTime(double runTime) {
		this.runTime = runTime;
	}
	public double getUtilRation() {
		return utilRation;
	}
	public void setUtilRation(double utilRation) {
		this.utilRation = utilRation;
	}
	

}
